function showWin(title,content,call,full,area,type){
	var newArea="";
	if(area){
		newArea=area;
	}else{
		newArea="auto";
	}
	var wintype=1;
	if(type!=null){
		wintype=type;
	}
	var winIndex = layer.open({
        type: wintype,
        title: title,
        content: content,
        btn: call==null?'':['确定', '关闭'],
        offset: 'auto',
        area: newArea,
        yes: function (index, layero) {
        	if(call){
        		call(index,layero);
        	}
        	//layer.close(index);
        },
        maxmin: true
    });
	if(full){
		layui.layer.full(winIndex);
		window.sessionStorage.setItem("index",winIndex);
		//改变窗口大小时，重置弹窗的宽高，防止超出可视区域（如F12调出debug的操作）
		$(window).on("resize",function(){
			layui.layer.full(window.sessionStorage.getItem("index"));
		})
	}
}